﻿@using com.hyrentals.webcommon.extensions
@using com.hyrentals.webportal.Config
@using com.hyrentals.data
@using com.hyrentals.webportal.helpers

@model IEnumerable<RV>
@{
    Html.AddStyle("css/rv");
}

<div class="layout-primary">
    <div class="layout-primary-left"></div>
    <div class="layout-primary-middle">
    <h1 class="title-l1">My Listings</h1>
    @{
        if (Model.Count() > 0)
        {
        <ul class="rv-list">
        @{
            foreach (RV rv in Model)
            {
            <li>
                <p><a href="@UrlGenerator.RVDetailUrl(rv.Id)">@rv.DisplayName</a></p>
            </li>
            }
        }
        </ul>
        }
    }
    </div>
    <div class="layout-primary-right">
    </div>
</div>